/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.srcptit.trainning.thompv.btvn2;
import java.util.Scanner;
/**
 *
 * @author SONY
 */
public class Bai2 {
    public static void main(String[] args)
    {
        Scanner sc=new Scanner(System.in);
        String s;
        System.out.println("Moi ban nhap 1 xau: ");
        s=sc.nextLine();
        String s1[]=s.split(" ");
        int dem=0;
        for(int i=0;i<s1.length;i++)
            if(!s1[i].equals(""))
            dem++;
        System.out.println("So tu co trong xau la: "+dem);
    }
}
